/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package xlsBeans;

import com.smartxls.WorkBook;

/**
 *
 * @author Lucas
 */
public class TaxonomicElementsXLS {
    private String kingdom;
    private String phylum;
    private String classe;
    private String order;
    private String family;
    private String genus;
    private String subgenus;
    private String specificepithet ;
    private String infraspecificepithet;
    private String taxonrank;
    private String scientificnameauthor;
    private String nomenclaturalcode;
    private String taxonconcept;
    private String nomenclaturalstatus;
    private String acceptednameusage;
    private String parentnameusage;
    private String originalnameusage;
    private String nameaccordingto;
    private String namepublishedin;
    private String vernacularname;
    private String taxonomicstatus;
    private String verbatimtaxonrank;
    private String taxonremarks;

    private int sp;

    public TaxonomicElementsXLS() {
        this.kingdom = "";
        this.phylum = "";
        this.classe = "";
        this.order = "";
        this.family = "";
        this.genus = "";
        this.subgenus = "";
        this.specificepithet = "";
        this.infraspecificepithet = "";
        this.taxonrank = "";
        this.scientificnameauthor = "";
        this.nomenclaturalcode = "";
        this.taxonconcept = "";
        this.nomenclaturalstatus = "";
        this.acceptednameusage = "";
        this.parentnameusage = "";
        this.originalnameusage = "";
        this.nameaccordingto = "";
        this.namepublishedin = "";
        this.vernacularname = "";
        this.taxonomicstatus = "";
        this.verbatimtaxonrank = "";
        this.taxonremarks = "";
    }

    public TaxonomicElementsXLS(WorkBook w, int l, int sp) {
        try{
            setTaxonomicElements(w, l, sp);
        }catch(Exception e){
            e.printStackTrace();
        }
    }

    public void setTaxonomicElements(WorkBook w, int l, int sp) throws Exception {
        this.kingdom = w.getText(l, 16 + sp);
        this.phylum = w.getText(l, 17 + sp);
        this.classe = w.getText(l, 18 + sp);
        this.order = w.getText(l, 19 + sp);
        this.family = w.getText(l, 20 + sp);
        this.genus = w.getText(l, 21 + sp);
        this.subgenus = w.getText(l, 22 + sp);
        this.specificepithet = w.getText(l, 23 + sp);
        this.infraspecificepithet = w.getText(l, 24 + sp);
        this.taxonrank = w.getText(l, 25 + sp);
        this.scientificnameauthor = w.getText(l, 26 + sp);
        this.nomenclaturalcode = w.getText(l, 27 + sp);
        this.taxonconcept = w.getText(l, 28 + sp);
        this.nomenclaturalstatus = w.getText(l, 29 + sp);
        this.acceptednameusage = w.getText(l, 30 + sp);
        this.parentnameusage = w.getText(l, 31 + sp);
        this.originalnameusage = w.getText(l, 32 + sp);
        this.nameaccordingto = w.getText(l, 33 + sp);
        this.namepublishedin = w.getText(l, 34 + sp);
        this.vernacularname = w.getText(l, 35 + sp);
        this.taxonomicstatus = w.getText(l, 36 + sp);
        this.verbatimtaxonrank = w.getText(l, 37 + sp);
        this.taxonremarks = w.getText(l, 38 + sp);
    }

    public boolean isSetTaxonomic(){
        if(this.acceptednameusage.equals("") && this.infraspecificepithet.equals("") && this.parentnameusage.equals("") && this.classe.equals("") && this.family.equals("") && this.genus.equals("") && this.subgenus.equals("") && this.kingdom.equals("") && this.phylum.equals("") && this.specificepithet.equals("") && this.taxonrank.equals("") && this.scientificnameauthor.equals("") && this.nomenclaturalcode.equals("") && this.taxonconcept.equals("") && this.nomenclaturalstatus.equals("") && this.originalnameusage.equals("") && this.nameaccordingto.equals("") && this.namepublishedin.equals("") && this.vernacularname.equals("") && this.taxonomicstatus.equals("") && this.verbatimtaxonrank.equals("") && this.taxonremarks.equals("") && this.order.equals(""))
            return  false;
        else return true;
    }

    public String getAcceptednameusage() {
        return acceptednameusage;
    }

    public void setAcceptednameusage(String Acceptednameusage) {
        this.acceptednameusage = Acceptednameusage;
    }

    public String getInfraspecificepithet() {
        return infraspecificepithet;
    }

    public void setInfraspecificepithet(String Infraspecificepithet) {
        this.infraspecificepithet = Infraspecificepithet;
    }

    public String getParentnameusage() {
        return parentnameusage;
    }

    public void setParentnameusage(String Parentnameusage) {
        this.parentnameusage = Parentnameusage;
    }

    public String getClasse() {
        return classe;
    }

    public void setClasse(String classe) {
        this.classe = classe;
    }

    public String getFamily() {
        return family;
    }

    public void setFamily(String family) {
        this.family = family;
    }

    public String getGenus() {
        return genus;
    }

    public void setGenus(String genus) {
        this.genus = genus;
    }

    public String getKingdom() {
        return kingdom;
    }

    public void setKingdom(String kingdom) {
        this.kingdom = kingdom;
    }

    public String getNameaccordingto() {
        return nameaccordingto;
    }

    public void setNameaccordingto(String nameaccordingto) {
        this.nameaccordingto = nameaccordingto;
    }

    public String getNamepublishedin() {
        return namepublishedin;
    }

    public void setNamepublishedin(String namepublishedin) {
        this.namepublishedin = namepublishedin;
    }

    public String getNomenclaturalcode() {
        return nomenclaturalcode;
    }

    public void setNomenclaturalcode(String nomenclaturalcode) {
        this.nomenclaturalcode = nomenclaturalcode;
    }

    public String getNomenclaturalstatus() {
        return nomenclaturalstatus;
    }

    public void setNomenclaturalstatus(String nomenclaturalstatus) {
        this.nomenclaturalstatus = nomenclaturalstatus;
    }

    public String getOrder() {
        return order;
    }

    public void setOrder(String order) {
        this.order = order;
    }

    public String getOriginalnameusage() {
        return originalnameusage;
    }

    public void setOriginalnameusage(String originalnameusage) {
        this.originalnameusage = originalnameusage;
    }

    public String getPhylum() {
        return phylum;
    }

    public void setPhylum(String phylum) {
        this.phylum = phylum;
    }

    public String getScientificnameauthor() {
        return scientificnameauthor;
    }

    public void setScientificnameauthor(String scientificnameauthor) {
        this.scientificnameauthor = scientificnameauthor;
    }

    public int getSp() {
        return sp;
    }

    public void setSp(int sp) {
        this.sp = sp;
    }

    public String getSpecificepithet() {
        return specificepithet;
    }

    public void setSpecificepithet(String specificepithet) {
        this.specificepithet = specificepithet;
    }

    public String getSubgenus() {
        return subgenus;
    }

    public void setSubgenus(String subgenus) {
        this.subgenus = subgenus;
    }

    public String getTaxonconcept() {
        return taxonconcept;
    }

    public void setTaxonconcept(String taxonconcept) {
        this.taxonconcept = taxonconcept;
    }

    public String getTaxonomicstatus() {
        return taxonomicstatus;
    }

    public void setTaxonomicstatus(String taxonomicstatus) {
        this.taxonomicstatus = taxonomicstatus;
    }

    public String getTaxonrank() {
        return taxonrank;
    }

    public void setTaxonrank(String taxonrank) {
        this.taxonrank = taxonrank;
    }

    public String getTaxonremarks() {
        return taxonremarks;
    }

    public void setTaxonremarks(String taxonremarks) {
        this.taxonremarks = taxonremarks;
    }

    public String getVerbatimtaxonrank() {
        return verbatimtaxonrank;
    }

    public void setVerbatimtaxonrank(String verbatimtaxonrank) {
        this.verbatimtaxonrank = verbatimtaxonrank;
    }

    public String getVernacularname() {
        return vernacularname;
    }

    public void setVernacularname(String vernacularname) {
        this.vernacularname = vernacularname;
    }


}
